const Base = require('./base.js');
module.exports = class extends Base {
  __before() {
    super.__before();
    this.categoryService = think.rpc.information.category;
  }
  // 获取分类信息
  async dataAction() {
    try {
      return this.success(await this.categoryService.queryAll('id,title,cover,fee'));
    } catch (e) {
      return this.fail(e);
    }
  }
  async testAction() {
    return this.success();
  }
};
